class Mouse extends Observable
{
  public Vector2 getPos()
  {
    return new Vector2(mouseX, mouseY);
  }
  
  private int lastX;
  private int lastY;
  
  public void raiseEvent()
  {
    if (lastX != mouseX || lastY != mouseY)
    {
      lastX = mouseX;
      lastY = mouseY;
      this.notifyObs();
    }
  }
}
